<?php
	if($user == "guest")
	{
?>
<form method="post" action="index.php">
	<table>
		<tr>
			<th>Login</th>
		</tr>
		<tr>
			<td>User: </td>
			<td><input type="text" name="user" /></td>
		</tr>
		<tr>
			<td>Password: </td>
			<td><input type="password" name="password" /></td>
		</tr>
		<tr>
			<td></td>
			<td><input type="submit" value="login" /></td>
		</tr>
	</table>
</form>
<?php
	}
	else
	{
?>
<div>You're already logged in. <a href="?page=logout" title="Logout">Log Out</a>?</div>
<?
	}
?>